package com.plian.system.entity.zcgl;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @author ffl
 * 人力资源-中层管理-竞争上岗结果备案
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("zcgl_jzsgjgba")
public class JzsgjgbaEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单据编码
     */
    @ApiModelProperty(value = "单据编码")
    private String code;
    /**
     * 填报单位
     */
    @ApiModelProperty(value = "填报单位")
    private String reportCompanyId;

    /**
     * 填报时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date reportTime;

    private Long competitionId;
    private String competitionTitle;
    /**
     * 岗位数
     */
    private Integer positionsCount;
    /**
     * 报名人数
     */
    private Integer signCount;

    /**
     * 审批人
     */
    @ApiModelProperty(value = "审批人")
    private String approvedUser;
    /**
     * 审批时间
     */
    @ApiModelProperty(value = "审批时间")
    private Date approvedTime;
    /**
     * 单据类型
     */
    @ApiModelProperty(value = "单据类型")
    private String formType;

    @TableField(exist = false)
    @ApiModelProperty(value = "附件")
    private List<HashMap> docList;

    @ApiModelProperty(value = "附件ids")
    @TableField(exist = false)
    private String attachIds;

    @ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
    private String dataSource;

    @ApiModelProperty(value = "数据来源id", required = true)
    private String dataSourceId;
}
